<div class="album">
  <div class="title">
    <p class="name">相册列表</p>
    <% if loggined_by? @valleyer %>
      <%= link_to_remote "创建相册",
        :update => "createBase",
        :url => new_valleyers_show_album_url(),
        :method => :get,
        :html => {
        :id => "new_album",
        :class => "foundAlbum"
        },
        :complete => "createShow();"
      %>
      <p>|</p>
      <%= link_to_remote "上传相片",
        :update => "album_replace",
        :url => new_valleyers_show_albums_show_photo_url(:album_id => nil),
        :method => :get,
        :html => {
        :id => "upload_photo",
        :class => "upload"
        }
      %>
    <% end %>
  </div>
  <div class="album_mat">
    <div id="createBase" class="createBase_hide"></div>
  </div>
  <div id="subject" class="subject">
    <%= render :file => "valleyers/show/albums/index.js" %>
  </div>
</div>
<div class="caller">
  <%= render :file => "valleyers/show/albums/show/friends/index.js" %>
</div>